package cn.itcast.nems.config;

import cn.itcast.nems.manager.enrol.EnrolManager;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 报名系统接口初始化
 */
@Configuration
public class EnrolMangerConfig {
    @Value("${enrol.domain}")
    private String enrolDomain;
    @Value("${enrol.appId}")
    private String appId;
    @Value("${enrol.appKey}")
    private String appKey;


    @Bean
    public EnrolManager enrolManger() {
        return new EnrolManager(enrolDomain, appId, appKey);
    }
}
